# 位置参数
def user_info(name, age, gender):
    print(f"姓名:{name}\n年龄:{age}\n性别:{gender}")


user_info("张国强", 18, "男")

print("*" * 100)


# 关键字参数
def stu_info(name, age, gender):
    print(f"姓名:{name}\n年龄:{age}\n性别:{gender}")


stu_info(name="张小强", age=22, gender="男")
stu_info(gender="女", age=18, name="张小米")


# 缺省函数
def user_info(name, gender, age=18):
    print(f"姓名:{name}\n性别:{gender}\n年龄:{age}")


user_info("范冰冰", "女")
user_info("杨幂", "女", 22)
user_info("沈腾", "男", 35)
user_info("赵本山", "男", 60)